export default async function({ pressure, duration }) {
  await new Promise(resolve => setTimeout(resolve, 2000));
  console.log(`[KPMS] 设置压力: ${pressure} kPa, 持续时间: ${duration} min`);
  return { actualPressure: pressure, duration };
}

export const meta = {
  name: "设置压力",
  parameters: [
    { 
      name: "pressure", 
      type: "number", 
      defaultValue: 100, 
      description: "目标压力值",
      unit: "kPa"
    },
    { 
      name: "duration", 
      type: "number", 
      defaultValue: 5, 
      description: "持续时间",
      unit: "min" 
    }
  ]
};